package com.zfzs.post.modules.agentinfo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description:
 * @author: ck
 * @create: 2019-12-11 14:30
 **/
@Data
public class ChannelDTO {
    @JsonSerialize(using= ToStringSerializer.class)
    @NotNull(message = "ID不能为空")
    private Long id;
    @NotNull(message = "渠道名称不能为空")
    private String nickname;
    @NotNull(message = "手机号不能为空")
    private String phone;
    @NotBlank(message = "邮箱不能为空")
    private String email;
}
